package com.xyht.medicine_management_system.modules.activity.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author XYHT
 * @since 2023-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_activity")
@ApiModel(value="MmsActivity对象", description="活动表")
public class MmsActivity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "活动ID")
    private String id;

    @ApiModelProperty(value = "活动名称")
    private String name;

    @ApiModelProperty(value = "活动类型，例如促销、折扣、比赛等")
    private Integer type;

    @ApiModelProperty(value = "商品图")
    private String picture;

    @ApiModelProperty(value = "活动开始日期")
    private Date startDate;

    @ApiModelProperty(value = "活动结束日期")
    private Date endDate;

    @ApiModelProperty(value = "活动介绍")
    private String introduction;

    @ApiModelProperty(value = "活动规则")
    private String rule;

    @ApiModelProperty(value = "参与方式")
    private String participate;

    @ApiModelProperty(value = "奖品详情")
    private String prizeDetail;

    @ApiModelProperty(value = "其他条款(例如活动的时间限制、每人限参加次数等)")
    private String otherCondition;

    @ApiModelProperty(value = "联系方式(活动组织的联系方式，例如电话号码、电子邮件地址)")
    private String contactInfo;

    @ApiModelProperty(value = "其他信息")
    private String additionalInfo;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;

}
